import request from '@/utils/request'

// 查询工艺路线列表
export function listTechRoute(query) {
  return request({
    url: '/base/techRoute/list',
    method: 'get',
    params: query
  })
}

// 查询工艺路线详细
export function getTechRoute(id) {
  return request({
    url: '/base/techRoute/' + id,
    method: 'get'
  })
}

// 新增工艺路线
export function addTechRoute(data) {
  return request({
    url: '/base/techRoute',
    method: 'post',
    data: data
  })
}

// 修改工艺路线
export function updateTechRoute(data) {
  return request({
    url: '/base/techRoute',
    method: 'put',
    data: data
  })
}

// 删除工艺路线
export function delTechRoute(id) {
  return request({
    url: '/base/techRoute/' + id,
    method: 'delete'
  })
}
